<html>

<head>
<link rel="stylesheet" type="text/css" href="../../doc.css" />
<style type="text/css">
.auto-style1 {
	border-style: solid;
	border-width: 1px;
}
</style>
</head>

<body>
<h1>Simulator Pass One</h1>
<p><strong>Purpose:</strong> A class to run pass one of the simulator, loading 
data from load file to memory.</p>
<hr>
<p><strong>Procedure Name:</strong> SimulatorPassOne<br><strong>Description:</strong> Constructor to initialize data 
collections<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br><strong>Input 
Parameters: </strong>String file - load file<br>	<strong>Output Parameters:</strong> none<br><br><strong>Error Conditions Tested:</strong> 
none<br><strong>Error 
Messages Generated: </strong>none<br><strong>Original Author:</strong> Scott Beaber<br><strong>Procedure Creation Date:</strong> 
5/21/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px"><strong>Why</strong></td>
	</tr>
	<tr>
		<td style="width: 74px; height: 23px;">Scott</td>
		<td style="width: 99px; height: 23px;">5/21/2011</td>
		<td style="width: 300px; height: 23px;">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">Scott</td>
		<td style="width: 99px">5/22/2011</td>
		<td style="width: 300px">Included MEM array and fatalError flag</td>
	</tr>
	
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya<br></p>
<hr>
<p><strong>Procedure Name:</strong> GetRecord<br><strong>Description:</strong> Reads in and parses a single record 
from the load file<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	<strong>Input Parameters:</strong> String 
line - the line of the load file to be read<br>	<strong>Output Parameters:</strong> <br><br><strong>Error Conditions 
Tested: </strong>Syntax and boundary values for all fields in the load file record, 
handles overflow in header records (loadAddress + length &lt; 1023)<br><strong>Error Messages Generated:</strong> 
InvalidModuleName, InvalidLoadAddress, InvalidStartAddress, Memory Exceeded, 
InvalidModuleLength, Invalid Date/Time, InvalidRecordCount, 
InvalidAssemblerName, InvalidVersionNumber, InvalidProgramName, 
InvalidMemoryLocation, Invalid Instruction/Data Word<br><strong>Original Author:</strong> Scott 
Beaber<br><strong>Procedure Creation Date:</strong> 
5/21/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Scott</td>
		<td style="width: 99px">5/21/2011</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">Scott</td>
		<td style="width: 99px">5/22/2011</td>
		<td style="width: 300px">Updated the error messages</td>
	</tr>
	<tr>
		<td style="width: 74px">Scott</td>
		<td style="width: 99px">5/23/2011</td>
		<td style="width: 300px">Catches overflow fatal error, if not fatal 
		loads fileData with zeros in that field</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya<br></p>
<hr>
<p><strong>Procedure Name:</strong> LoadMemory<br><strong>Description:</strong> Loads each instruction/data word 
into the MEM array, indexed based on the location given in the record.<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> none<br>		<strong>Output Parameters:</strong> void<br> <br>
<strong>Error Conditions Tested:</strong> none<br><strong>Error Messages Generated:</strong> none<br>Original 
Author: Scott Beaber<br><strong>Procedure Creation Date:</strong> 
5/22/2011<br><strong>Modification Log:</strong><br>
<table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Scott</td>
		<td style="width: 99px">5/22/2011</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya<br></p>
<hr>
<p><strong>Procedure Name:</strong> DisplayMem<br><strong>Description:</strong> Displays a simple memory dump 
including hex location and instruction/data word for debugging purposes.<br><strong>Specification reference codes:</strong><br><strong>Calling Sequence</strong><br>	
<strong>Input Parameters:</strong> none<br><strong>Output Parameters:</strong> void<br><br><strong>Error Conditions Tested:</strong> none<br><strong>Error 
Messages Generated: </strong>none<br>
<strong>Original Author:</strong> Scott Beaber<br><strong>Procedure Creation Date:</strong> 5/22/2011<br><strong>Modification Log:</strong><table class="auto-style1" style="width: 100%">
	<tr>
		<td style="width: 74px"><strong>Who</strong></td>
		<td style="width: 99px"><strong>When</strong></td>
		<td style="width: 300px">W<strong>hy</strong></td>
	</tr>
	<tr>
		<td style="width: 74px">Scott</td>
		<td style="width: 99px">5/22/2001</td>
		<td style="width: 300px">Created</td>
	</tr>
	<tr>
		<td style="width: 74px">&nbsp;</td>
		<td style="width: 99px">&nbsp;</td>
		<td style="width: 300px">&nbsp;</td>
	</tr>
</table>
<br><br><strong>Coding Standards Met:</strong> Signed-Kyle<br><strong>Testing Standards Met:</strong> Signed-Aditya<br></p>
<hr>
</body>
</html>
